from flask import Blueprint,session,redirect,render_template

od=Blueprint('order',__name__)

@od.route('/order/list')
def order_list():
    # 读取cookie获取用户信息
  user_info=session.get('user_info')
  if not user_info:
    return redirect('/login')
  print(user_info)
  return render_template("order.html")


@od.route('/order/create')
def create_list():
    return "创建订单"
